package cn.com.klun.tjy.common.basePojo;

import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;

public class Entitys implements Serializable {
    private static final long serialVersionUID = 5727572147825607037L;
    private String entityClassName;

    public Entitys() {
    }

    public void setEntityClassName(String entityClassName) {
        this.entityClassName = entityClassName;
    }

    public String getEntityClassName() {
        if (StringUtils.isEmpty(this.entityClassName)) {
            this.setEntityClassName(this.getClass().getSimpleName());
        }

        String entityClassNameStr = this.entityClassName.substring(0, 1).toLowerCase() + this.entityClassName.substring(1, this.entityClassName.length());
        return entityClassNameStr;
    }
}
